package com.caigou.modules.center.adapter

import com.caigou.modules.center.R
import com.caigou.modules.center.bean.MyScoreItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/11/09
 */
class MyScoreAdapter(dataset: MutableList<MyScoreItem>) : BaseQuickAdapter<MyScoreItem, BaseViewHolder>(R.layout.item_my_score_list, dataset) {
    override fun convert(holder: BaseViewHolder, item: MyScoreItem) {
        holder.setImageResource(R.id.item_my_score_iv, item.imgRes)
        holder.setText(R.id.item_my_score_btn, item.desc)
    }
}